package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.api.GoodsItem;
import com.weipai.springboot.model.api.GoodsItemResult;

import java.util.List;

public interface SolrDao {
    //增加/修改商品索引
    void save(GoodsItem item);

    //批量增加
    void save(List<GoodsItem> items);

    //删除商品索引
    void delete(String id);

    //关键字查询  --是否新品  价格区间 品牌 app端
    GoodsItemResult query(String keyword,
                          Integer isNews,
                          Integer isBoutique,
                          String categoryId,
                          String brandName,
                          Integer minPrice,
                          Integer maxPrice,
                          String[] prop,
                          Long start,
                          Integer size,
                          String shopId, String sort,
                          String way,
                          String clientType,
                          List<String> sysProps);

    void deleteall();

    GoodsItemResult query22(Long start, Integer size, String sort, String way);


    //关键字查询  --是否新品  价格区间 品牌 app端V2
    GoodsItemResult queryV2(String keyword,
                          Integer isNews,
                          Integer isBoutique,
                          String categoryId,
                          String brandName,
                          Integer minPrice,
                          Integer maxPrice,
                          String[] prop,
                          Long start,
                          Integer size,
                          String shopId, String sort,
                          String way,
                          String clientType,
                          List<String> sysProps,Integer isHomePage);
}
